<template>
  <div>
    <div v-if="url">
      <img :src="url" height="160" />
    </div>
    <div>
      <App-cropper
        :width="300"
        :height="300"
        :fixed-number="[1,1]"
        @subUploadSucceed="getShopImages"
      />
    </div>
  </div>
</template>

<script>
import AppCropper from "@/components/Cropper";
export default {
  name: "GoodsForm",
  components: {
    AppCropper,
  },
  data() {
    return {
      url: "",
    };
  },
  methods: {
    // 海报上传成功
    handleUploadSucceed(url) {
      this.url = url;
    },
    getShopImages() {
      
    }
  },
};
</script>